package com.wchen.gdoc.generate.resource.analysis;

import com.sun.javadoc.Type;
import com.wchen.gdoc.generate.resource.structure.FieldStructure;


/**
 * doc解析接口
 *
 * @author  wchen
 * @date    2019/11/7
 */
public interface DocTypeAnalysis {

    FieldTypeFilter TYPE_FILTER = new FieldTypeFilter();

    /**
     * 是否支持
     * @param docType
     * @return
     */
    Boolean isSupport(Type docType);

    /**
     * 解析参数
     * @param docType
     * @param isRequestParam
     * @return
     */
    FieldStructure analysisParam(Type docType, Boolean isRequestParam);

}
